--[[/**
-- * * 大招,
-- *
-- */]]

---@class BuffEffect112100 : BaseBuffEffect
BuffEffect112100 = ClientFight.CreateClass("BuffEffect112100", ClientFight.BaseBuffEffect)
local t = BuffEffect112100

---@param fight Fight
---@param buff FighterBuff
function t:action(fight, buff, ...)
    local target = buff.target;
    local ATTACK_SPEED = FighterAttributeManager.getFightAttr(target, FighterAttributeEnum.ATTACK_SPEED);
    if (ATTACK_SPEED > 0) then
        return ClientFight.BaseBuffEffect.action(self, fight, buff, ...);
    end
    local step = math.abs(ATTACK_SPEED) / buff.buffBean.f_BuffEffectValue[1];
    if (step < 1) then
        return ClientFight.BaseBuffEffect.action(self, fight, buff, ...);
    end
    local timeD = step*buff.buffBean.f_BuffEffectValue[2];

    buff.setContinuedTime(buff.continuedTime+ timeD);

    return ClientFight.BaseBuffEffect.action(self, fight, buff, ...);
end

t.New()